<%@ page import="com.aiden.service.UserService" %>
<%@ page import="com.aiden.service.impl.UserServiceImpl" %>
<%@ page import="com.aiden.entity.User" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/5/23
  Time: 12:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
<%
    //jsp表示层——>控制器（增删改查操作）——>业务层——>dao层——>mysql服务器
    UserService service=new UserServiceImpl();
    List<User> allList = service.findAllList();
    for (User user : allList) {
        out.print("<p>"+user+"</p>");
    }
%>
</body>
</html>
